<%--
  Created by IntelliJ IDEA.
  User: 13095
  Date: 2024/10/28
  Time: 16:58
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set value="${pageContext.request.contextPath}" var="path"></c:set>
<script src="${path}/static/js/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="${path}/static/css/style.css">
<script src="${path}/static/js/script.js"></script>
<html>
<body>
<div class="container">
  <header>
    <h1>称号管理</h1>
    <jsp:include page="inc/inc.jsp"></jsp:include>
  </header>
  <main>
    <table>
      <tr>
      <th>序号</th>
      <th>称号</th>
      <th>操作</th>
      </tr>
      <c:forEach items="${requestScope.nicknamePageInfo.list}" var="nick" varStatus="sta">
        <tr>
          <td>${sta.count}</td>
          <td>${nick.nickname}</td>
          <td><a href="${path}/manage/delNick?id=${nick.id}">删除</a> </td>
        </tr>
      </c:forEach>
    </table>
<div style="display: flex">
  <a href="/manage/addNickName?" style=" margin: 0 auto; " >添加称号</a>
</div>


  </main>
</div>
  </body>
</html>
